Learn R Programming

EMCluster (version 0.2-16)

Plot EM Results: Plot Two Dimensional Data with clusters

Description

The functions plot two dimensional data for clusters.

Usage

plotem(emobj, x, main = NULL, xlab = NULL, ylab = NULL,
       ...)
plot2d(x, emobj = NULL, k = NULL, color.pch = 1,
       append.BN = TRUE, ...)

Value

A plot is returned.

Arguments

emobj

the desired model which is a list mainly contains pi, Mu, and LTSigma, usually a returned object from init.EM.

x

the data matrix, dimension \(n\times p\).

main

title of plot.

xlab

label of x-axis.

ylab

label of y-axis.

...

other parameters to the plot.

k

index for symbols.

color.pch

color and style for symbols.

append.BN

if appending bivariate normal ellipsoid.

Author

Wei-Chen Chen wccsnow@gmail.com and Ranjan Maitra.

Details

This a simple x-y lot.

References

https://www.stat.iastate.edu/people/ranjan-maitra

See Also

init.EM, emcluster.

Examples

Run this code
if (FALSE) {
library(EMCluster, quietly = TRUE)
x1 <- da1$da

ret.1 <- starts.via.svd(x1, nclass = 10, method = "em")
summary(ret.1)

plotem(ret.1, x1)
}

Run the code above in your browser using DataLab